
package com.hc.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hc.dao.IIndexDataDao;
import com.hc.domain.IndexData;
@Repository
public class IndexDataDaoImpl extends BaseDaoImpl<IndexData> implements IIndexDataDao {

	@Override
	public IndexData getById(int id) {
		return super.get("FROM IndexData i WHERE i.id = ?", new Object[] {id});
		
	}

	@Override
	public void UpdateOrSave(IndexData idata) {
		super.saveOrUpdate(idata);
	}

	@Override
	public List<IndexData> findDatas() {
		return super.find("FROM IndexData");
		
	}

}

